package models.vos.accounts {
	import mx.collections.ArrayCollection;
	
	[Bindable]	
	public class ContactInfo {

		public var id:Number;
		public var fullName:String;
		public var nickname:String;
		public var avatar:String = "assets/default-ava.jpg";
		public var emails:ArrayCollection;
		public var phones:ArrayCollection;
		public var addresses:ArrayCollection;

		public function ContactInfo(
			fullName:String = "", 
			nickname:String = "", 
			emails:ArrayCollection = null, 
			phones:ArrayCollection = null, 
			addresses:ArrayCollection = null, 
			id:Number = 0) {
				this.id = id;
				this.fullName = fullName;
				this.nickname = nickname;
				
				this.emails = (emails == null ? new ArrayCollection() : emails);
				this.phones = (phones == null ? new ArrayCollection() : phones);
				this.addresses = (addresses == null ? new ArrayCollection() : addresses);
		}
	} // end class
} // end package